package com.onpositive.dataminer.core;

import java.text.NumberFormat;

import com.onpositive.knowledge.model.value.audits.AbstractAuditResult;
import com.onpositive.semantic.model.api.property.IProperty;

public class PropertyRateAuditResult extends AbstractAuditResult{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3900306664752569807L;
	protected int totalEncountered;
	protected double rate;
	protected int correctTypeCount;
	protected double correctTypeRate;
	
	public PropertyRateAuditResult(IProperty prop) {
		super(prop);		
		looksApplyable=true;
	}

	public String getCorrectRate(){
		return NumberFormat.getInstance().format(correctTypeRate);
	}
	public String getRate(){
		return NumberFormat.getInstance().format(rate);
	}
}
